package br.com.biblioteca.conection;

import br.com.biblioteca.Bean.Cadastro;
import br.com.biblioteca.Dao.CadastroDao;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Maicon
 */
public class Biblioteca {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        // TODO code application logic here
        CadastroDao dao = new CadastroDao();
        List<Cadastro> MinhaLista = dao.getLista();
        for (Cadastro cad : MinhaLista) {
            System.out.println("Nome:"+cad.getNome());
        }
    }

}
